
namespace QGameFramework.QReferencePool
{
    public class ReferencePoolComponent : BaseComponent
    {
        #region 全局变量
        /// <summary>
        /// 引用池
        /// </summary>
        public ReferencePool m_ReferencePool { get; set; }
        #endregion

        #region 重写函数
        public override void OnInit()
        {
            base.OnInit();
            m_ReferencePool = new ReferencePool();
            m_ReferencePool.ClearAll();
        }

        public override void DeInit()
        {
            base.DeInit();
            m_ReferencePool.ClearAll();
            m_ReferencePool = null;
        }
        #endregion
    }
}